#import "Interfaces.hpp"
#import "AccelerometerFilter.h"
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import <CoreLocation/CoreLocation.h>

@interface GLView : UIView <CLLocationManagerDelegate, UIAccelerometerDelegate> {
@private
    IApplicationEngine* m_applicationEngine;
    IRenderingEngine* m_renderingEngine;
	IResourceManager* m_resourceManager;
	
    AccelerometerFilter* m_filter;
	CLLocationManager* m_locationManager;
    EAGLContext* m_context;
    float m_timestamp;
	
//	UIAccelerationValue	*accel;	
	
	float m_magValue;
	float m_accelValue;
	
	IBOutlet UIButton *resetMagnButton;
	IBOutlet UIButton *resetZeroButton;

}

//@property (nonatomic) UIAccelerationValue *accel;

- (void) drawView: (CADisplayLink*) displayLink;


- (IBAction)onResetZeroButton:(UIButton *)sender;
- (IBAction)onResetMagnButton:(UIButton *)sender;


@end
